<ion-header>

  <ion-navbar>
    <ion-title>我的子账户</ion-title>
    <ion-buttons end>
      <button ion-button icon-only [navPush]="'BindSubAccountPage'">
        <ion-icon name="ios-add"></ion-icon>
        添加
      </button>
    </ion-buttons>
  </ion-navbar>

</ion-header>


<ion-content padding>
  <ion-item-group class="item-list" margin-bottom *ngIf="subAccounts?.length > 0">
    <ion-item-divider><span class="color-gray-light">子账户</span></ion-item-divider>
    <button ion-item *ngFor="let item of subAccounts" (click)="transferPage(item.user?.account)">
      账户：{{item.user?.account}}
      <ion-note item-end class="font-smallest">{{item.createTime | date: 'yyyy-MM-dd HH:mm:SS'}}</ion-note>
    </button>
  </ion-item-group>
  <div class="text-center no-data" *ngIf="subAccounts?.length === 0">暂无数据</div>
</ion-content>
